#include "SonClass.h"
#include "BaseClass.h"

SonClass::SonClass()
{

}

SonClass::SonClass(const SonClass &s)
{

}

SonClass &SonClass::operator =(const SonClass &s)
{
    return*this;
}

void SonClass::func()
{

    BaseClass::func(); //还想调用父类的话，这里用类名称来调用~
    std::cout << "son func called" << std::endl;
}

SonClass::~SonClass()
{
    std::cout << "Son class destructor called (delete son)." << std::endl;

}
